#pragma once
#ifndef _ASIO_ASYNC_CONNECTOR_H_
#define _ASIO_ASYNC_CONNECTOR_H_
#include "Netbase.h"
#include <boost\asio.hpp>
#include <boost\bind.hpp>
#include <boost\thread.hpp>

using namespace boost;
using namespace boost::asio;

namespace XGC
{
	namespace net
	{
		xgc_lpvoid AsyncConnect( io_service& service, const char* pszAddress, xgc_int16 port, PacketProtocal& protocal, IMessageQueue* pMessageQueue, xgc_uint16 nTimeInvent, xgc_uint16 nTimeout );

		xgc_bool DirectConnect( io_service& service, const char* pszAddress, xgc_int16 port, PacketProtocal& protocal, IMessageQueue* pMessageQueue, xgc_uint16 nTimeInvent, xgc_uint16 nTimeout );
	};
};

#endif //_ASIO_ASYNC_CONNECTOR_H_